def generate_phone_numbers(output_file, prefixes, start=10000, end=99999):
    with open(output_file, 'w') as file:
        for prefix in prefixes:
            for number in range(start, end + 1):
                phone_number = f"{prefix}537{number}"
                file.write(phone_number + '\n')

if __name__ == "__main__":
    # 济宁手机号前缀列表
    jining_prefixes = [
        '138', '139', '150', '151', '152', '157', '158', '159', '178', '182', '183', '187', '188'
    ]
    
    # 输出文件名
    output_file = 'jining_phone_numbers.txt'
    
    # 生成手机号字典文件
    generate_phone_numbers(output_file, jining_prefixes)
    
    print(f"手机号字典文件已生成: {output_file}")